#ifndef REPAIR_H
#define REPAIR_H

#include <QWidget>
#include <QtSql>
#include "search.h"

namespace Ui {
class Repair;
}

class Repair : public QWidget
{
    Q_OBJECT
public:
    explicit Repair(QWidget *parent = 0);
    ~Repair();
    
signals:
    
public slots:
    void slotAddSpClicked();
    void slotDeleteSpClicked();
    void slotSparePartSelected();
    void slotOkClicked();

private:
    Ui::Repair * ui;
    Search * search;
    QSqlTableModel * model;
    QMap<QString, QSqlRecord> spList;
    
};

#endif // REPAIR_H
